// https://vitepress.dev/reference/site-config
export default {
  lastUpdated: true,
  title: 'xycc博客',
  description:
    '大体上就是记录一下当前的学习过程，毕竟大约半年人体就完成一次更新过程，半年前的自己学习的内容可能半年后的自己就完全没有印象了。',
  base: '/blogs/xblog/',
  head: [
    [
      'script',
      {
        async: '',
        src: 'https://www.googletagmanager.com/gtag/js?id=G-ZXW9W2D7R6',
      },
    ],
    [
      'script',
      {},
      `
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'G-ZXW9W2D7R6');
      `,
    ],
    [
      'script',
      {
        async: '',
        src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3926895540514296',
        crossorigin: 'anonymous',
      },
    ],
    [
      'script',
      {},
      `var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?e9ab353cbc418b4e48c04816dcfd588c";
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
      })();`,
    ],
  ],
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    outline: 'deep',
    nav: [
      { text: 'iOS', link: '/ios/changeicon' },
      { text: 'macOS', link: '/macos/packDmg' },
      { text: '小程序', link: '/wx/clouderror' },
      { text: '鸿蒙', link: '/hm/index' },
      { text: 'threejs', link: '/threejs/cpuwind' },
      { text: '读书笔记', link: '/dushubiji/frxxz' },
      { text: '其他', link: '/others/index' },
    ],

    sidebar: {
      '/ios/': [
        {
          text: 'iOS',
          items: [
            {
              text: 'Xcode 26 could not locate developer disk image for this device 无法定位开发者磁盘镜像',
              link: '/ios/xcodePlatformSupport',
            },
            { text: 'App更换图标', link: '/ios/changeicon' },
            { text: '生成多分辨率图标', link: '/ios/multisizeicon' },
            { text: 'XCode硬盘占用问题', link: '/ios/iosdevicesupport' },
            { text: 'ARKit', link: '/ios/arbox' },
            { text: '企业账号', link: '/ios/qiye' },
            { text: 'UserAgent设置', link: '/ios/userAgent' },
            { text: 'Simulator手动安装', link: '/ios/simulator' },
            { text: '下拉刷新控件', link: '/ios/refreshControl' },
            { text: '苹果登录', link: '/ios/login' },
          ],
        },
      ],
      '/macos/': [
        {
          text: 'macOS',
          items: [
            { text: 'macOS Xcode打包dmg', link: '/macos/packDmg' },
            { text: 'sandbox 文件夹授权', link: '/macos/folderAccess' },
            { text: '获取文件夹大小', link: '/macos/folderSize' },
            { text: 'sandbox 获取用户路径文件夹', link: '/macos/userPath' },
          ],
        },
      ],
      '/others/': [
        {
          text: 'other',
          items: [
            { text: 'iframe 隐藏滚动条', link: '/others/iframeHideScrollbar' },
            { text: 'js 获取favicon', link: '/others/getfavicon' },
            {
              text: 'js 正则匹配返回所有匹配到的范围',
              link: '/others/jsRegxMatch',
            },
            {
              text: 'chrome extension插件替换网络请求中的useragent',
              link: '/others/chromeChangeAgent',
            },
            {
              text: 'Chrome extension 修改 window.navigator.userAgent',
              link: '/others/chromeModifyAgent',
            },
            { text: '网页多文件合并下载成zip', link: '/others/zipdownload' },
            { text: '拼图游戏', link: '/others/pintu' },
            { text: 'Python Json格式化', link: '/others/python-json' },
            { text: 'CSS Mask', link: '/others/cssMask' },
            { text: 'CMS', link: '/others/cms' },
            { text: '拟物地图', link: '/others/map' },
            { text: '仿网易云-360混响', link: '/others/wangyiyun-zhu' },
            { text: '阿里源', link: '/others/alisource' },
            { text: '穿山甲对接错误', link: '/others/chuanshanjia' },
          ],
        },
      ],
      '/wx/': [
        {
          text: '小程序',
          items: [
            { text: '云函数报错', link: '/wx/clouderror' },
            { text: '隐私策略', link: '/wx/privacy' },
          ],
        },
      ],
      '/hm/': [
        {
          text: '鸿蒙',
          items: [
            { text: '拉起浏览器', link: '/hm/openBrowser' },
            { text: '关于页面信息', link: '/hm/about' },
            { text: '动态共享包', link: '/hm/hsp' },
            { text: 'Des加密解密C++版本', link: '/hm/cryptoppDes' },
            { text: '应用/元服务', link: '/hm/index' },
            {
              text: 'expandSafeArea不生效问题',
              link: '/hm/expandSafeAreaNotWork',
            },
            { text: '构建/编译', link: '/hm/hvigorfile' },
            { text: '本地视频首帧截图', link: '/hm/firstFrame' },
            { text: '编译ffmpeg', link: '/hm/ffmpeg' },
            { text: '主体分割/背景剔除', link: '/hm/zhutifenge' },
            { text: '人脸识别', link: '/hm/renlianshibie' },
            { text: '混淆规则', link: '/hm/hunxiao' },
            { text: '选择相册图像并加载显示', link: '/hm/pickPhoto' },
            { text: '快速签名配置', link: '/hm/signConfig' },
            { text: '鸿蒙隐私策略问题/鸿蒙隐私策略生成', link: '/hm/privacy' },
            { text: '保存读取沙盒文件', link: '/hm/loadSaveFile' },
            { text: '组件截图并保存到相册', link: '/hm/zujianjietu' },
            {
              text: '改变状态栏和安全区域颜色之expandSafeArea',
              link: '/hm/expandSafeArea',
            },
            { text: '加载网络图片并转换成PixelMap', link: '/hm/loadImageUrl' },
            { text: '跳转商店应用页面', link: '/hm/shangdian' },
            { text: 'getContext报错', link: '/hm/getContext' },
            { text: '双向认证', link: '/hm/httpauth' },
            { text: '多尺寸适配', link: '/hm/lpx' },
            { text: '保存用户数据', link: '/hm/preference' },
            { text: 'Crypto', link: '/hm/crypto' },
            { text: '用户认证报错 203890688', link: '/hm/phoneloginError' },
            { text: '状态栏设置', link: '/hm/statusbar' },
            { text: 'AES CBC', link: '/hm/aesCBC' },
            { text: 'AES ECB', link: '/hm/aesECB' },
            { text: 'tabbar', link: '/hm/tabbar' },
            { text: '手机登录', link: '/hm/phonelogin' },
          ],
        },
      ],
      '/threejs/': [
        {
          text: 'threejs',
          items: [
            { text: '记录风的样子', link: '/threejs/cpuwind' },
            { text: '你是我心中最亮的星', link: '/threejs/center' },
            { text: '页面互动', link: '/threejs/multi' },
          ],
        },
      ],
      '/dushubiji/': [
        {
          text: '读书笔记',
          items: [{ text: '凡人修仙传', link: '/dushubiji/frxxz' }],
        },
      ],
    },

    search: {
      provider: 'local',
    },

    // socialLinks: [
    //   { icon: 'github', link: 'https://github.com/xo1988' }
    // ]
  },
}
